﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevFx.Web.Code;
using DevFx.FrameWork;
using System.Data.Objects;
using DevFx.Model;

namespace DevFx.Web
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        string[] _ary = null; 
        protected void Page_Load(object sender, EventArgs e)
        {
            string aa = "cb362b2a-cd20-4e5f-8a18-5065913ea6cb";
            Guid g = new Guid(aa);
           string bb= g.ToString();
        }
        void Summary_First_FirstOrDefault()
        {
            string s = (from a in _ary
                        select a).FirstOrDefault(a => a.StartsWith("z"));
            // string s = (from a in _ary 
            //                         select a).FirstOrDefault(a => a.StartsWith("xxx")); 
            // s == null 
            MessageBox.Show(this.Page,s);
            string aa = s;
        }
    }
}